package com.mao.object;

public class Test {
    public static void main(String[] args) {
        // 创建对象，存储学生数据
        Star s1 = new Star();
        s1.name = "Mary";
        s1.age = 18;
        s1.height = 1.68;
        s1.weight = 50;
        System.out.println(s1.name);
        System.out.println(s1.age);
        System.out.println(s1.height);
        System.out.println(s1.weight);

        // 创建对象，存储邓超的数据
        Star s2 = new Star();
        s2.name = "Denzel Washington";
        s2.age = 70;
        s2.height = 1.88;
        s2.weight = 90;
        System.out.println(s2.name);
        System.out.println(s2.age);
        System.out.println(s2.height);
        System.out.println(s2.weight);
    }
}
